package com.cardone.platform.authority.po;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import org.springframework.data.annotation.Id;

import com.cardone.common.annotations.BeginDate;
import com.cardone.common.annotations.EndDate;

/**
 * 许可
 * 
 * @author yaoht
 * 
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Permission implements java.io.Serializable {
	/**
	 * 版本号
	 */
	private static final long serialVersionUID = 337740817611176431L;

	/**
	 * 开始时间
	 */
	@BeginDate
	private Date beginDate;

	/**
	 * 编号
	 */
	private String code;

	/**
	 * 结束时间
	 */
	@EndDate
	private Date endDate;

	/**
	 * 标识
	 */
	@Id
	private String id;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 排序号
	 */
	private Double orderCode;

	/**
	 * 字典.工程标识
	 */
	private String projectId;

	/**
	 * 字典.类型标识
	 */
	private String typeId;
}